package defaultPackage;
import java.awt.Color;
import java.awt.Graphics;


public class KeyMenu 
{
	int textInterval = 16;
	boolean active = true;
	
	public KeyMenu()
	{
		
	}
	
	public void draw(Graphics g)
	{
		if (active)
		{
			g.setColor(Color.DARK_GRAY);
			g.fillRect(MainClass.windowXSize - 195, MainClass.menuHeight, 190, 4*textInterval + 5);
			
			g.setColor(Color.LIGHT_GRAY);
			g.drawString("- Designations", MainClass.windowXSize - 195 + 45, 1*textInterval + MainClass.menuHeight);
			g.drawString("- Constructions", MainClass.windowXSize - 195 + 45, 2*textInterval + MainClass.menuHeight);
			g.drawString("- Pause/Unpause", MainClass.windowXSize - 195 + 45, 3*textInterval + MainClass.menuHeight);
			g.drawString("- Open/Close Door", MainClass.windowXSize - 195 + 45, 4*textInterval + MainClass.menuHeight);
				
			g.setColor(Color.cyan);
			g.drawString("D", MainClass.windowXSize - 195 + 5, 1*textInterval + MainClass.menuHeight);
			g.drawString("C", MainClass.windowXSize - 195 + 5, 2*textInterval + MainClass.menuHeight);
			g.drawString("P", MainClass.windowXSize - 195 + 5, 3*textInterval + MainClass.menuHeight);
			g.drawString("Enter", MainClass.windowXSize - 195 + 5, 4*textInterval + MainClass.menuHeight);
		}
	}
	public void setActive(boolean active)
	{
		this.active = active;
	}
	public boolean isActive()
	{
		return active;
	}
}
